-- GENERATED SPELL FOR [Wrathtail Priestess] --


function spell0_3944(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_3944', 3500, 1)
end

function spell1_3944(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(15970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3944', 11000, 1)
end

function Sorts_3944(pUnit, Event)
local choix_sorts_3944 = math.random(0, 1)
if choix_sorts_3944 == 0 then
pUnit:RegisterEvent('spell0_3944', 1, 1)
end
if choix_sorts_3944 == 1 then
pUnit:RegisterEvent('spell1_3944', 1, 1)
end
end

function mob3944_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3944', math.random(1500, 3000), 1)
end

function mob3944_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3944_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3944_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3944, 1, 'mob3944_Action')
RegisterUnitEvent(3944, 2, 'mob3944_Leave')
RegisterUnitEvent(3944, 3, 'mob3944_Kill')
RegisterUnitEvent(3944, 4, 'mob3944_Die')
